package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.provider.read.${packageName};

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.api.${packageName}.read.I${className}ReadService;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.${packageName}.${className};
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.${packageName}.${className}Example;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.${packageName}.${className}Mapper;

@Service(value = "${smallClassName}Service")
public class ${className}ServiceImpl implements I${className}ReadService{
	
	@Resource(name = "${smallClassName}Mapper")
	private ${className}Mapper mapper;

	@Override
	public int countByExample(${className}Example example) {
		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(${className}Example example) {
		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public List<${className}> selectByExample(${className}Example example) {
		return mapper.selectByExample(example);
	}

	@Override
	public ${className} selectByPrimaryKey(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(${className} record,
			${className}Example example) {
		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(${className} record, ${className}Example example) {
		return mapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(${className} record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(${className} record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

}
